package com.xzy.utils;

public class FinalLevel {
    public static int getFinalLevel(double level,String dsId){
        Double floor = Math.floor(level);
        int i = floor.intValue();
        switch (dsId){
            case "3301":return lev(i);
            case "3303":return lev(i);
            case "3304":return lev(i);
            default:return 0;
        }
    }
    public static int lev(int i){
        if (i<3){
            return 1;
        }else if (i<4){
            return 2;
        }else if (i<5){
            return 3;
        }else if (i<6){
            return 4;
        }else if (i<7){
            return 5;
        }else {
            return 6;
        }
    }
}
